home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / A-An / animate.cpt / Animation Stack / background_2653.txt < prev    next >
Encoding:
Text File  |  1988-01-31  |  10.5 KB  |  439 lines

  1. -- background: 2653 from stack: in
  2. -- bmap block id: 3783
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: A006
  11. -- rect: left=142 top=22 right=40 bottom=253
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Continuous
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   set hilite of background button "Point-to-Point" to false
  23. end mouseUp
  24.  
  25.  
  26.  
  27. -- part 2 (button)
  28. -- low flags: 00
  29. -- high flags: E006
  30. -- rect: left=142 top=43 right=60 bottom=262
  31. -- title width / last selected line: 0
  32. -- icon id / first selected line: 0 / 0
  33. -- text alignment: 1
  34. -- font id: 0
  35. -- text size: 12
  36. -- style flags: 0
  37. -- line height: 16
  38. -- part name: Point-to-Point
  39. ----- HyperTalk script -----
  40. on mouseUp
  41.   set hilite of background button "Continuous" to false
  42. end mouseUp
  43.  
  44.  
  45.  
  46. -- part 3 (field)
  47. -- low flags: 00
  48. -- high flags: 0007
  49. -- rect: left=271 top=36 right=304 bottom=491
  50. -- title width / last selected line: 0
  51. -- icon id / first selected line: 0 / 0
  52. -- text alignment: 0
  53. -- font id: 3
  54. -- text size: 9
  55. -- style flags: 0
  56. -- line height: 12
  57. -- part name: Animation Sequence
  58. ----- HyperTalk script -----
  59. on closeField
  60.   global endLoc
  61.   repeat until last word of last line of field "Animation Sequence" is not empty
  62.     delete last line of field "Animation Sequence"
  63.   end repeat
  64.   put last word of last line of field "Animation Sequence" into it
  65.   if item 2 of it is empty or item 3 of it is not empty then
  66.     set hilite of bkgnd button "Continue?" to false
  67.     put empty into endLoc
  68.   else put it into endLoc
  69. end closeField
  70.  
  71.  
  72. -- part 5 (button)
  73. -- low flags: 00
  74. -- high flags: 2000
  75. -- rect: left=223 top=109 right=147 bottom=265
  76. -- title width / last selected line: 65410
  77. -- icon id / first selected line: -15743 / 49793
  78. -- text alignment: 1
  79. -- font id: 0
  80. -- text size: 12
  81. -- style flags: 0
  82. -- line height: 16
  83. -- part name: Begin
  84. ----- HyperTalk script -----
  85. on mouseUp
  86.   global endLoc
  87.   set icon of bkgnd button "Begin" to -15744
  88.   if hilite of bkgnd button "Continue?" is false then
  89.     -- wait 10
  90.     put "Click at starting point for animation." into field "Additional Notes"
  91.     show field "Additional Notes"
  92.     hide field "Notes"
  93.     wait until the mouse is down
  94.     put the mouseLoc into startLoc
  95.   else
  96.     put endLoc into startLoc
  97.     put "Click at next point to continue to....." into field "Additional Notes"
  98.     show field "Additional Notes"
  99.     hide field "Notes"
  100.     repeat while the mouse is up
  101.       put the mouseLoc into field "Mouse"
  102.     end repeat
  103.     put the mouseLoc into endLoc
  104.     put "drag from " & startLoc & " to " & endLoc & return after field "Animation Sequence"
  105.     wait 10
  106.   end if
  107.   if hilite of background button "Continuous" is true then
  108.     put "Click once to terminate animation sequence." into field "Additional Notes"
  109.     repeat while the mouse is up
  110.       put the mouseLoc into endLoc
  111.       put "drag from " & startLoc & " to " & endLoc & return after field "Animation Sequence"
  112.       put endLoc into startLoc
  113.     end repeat
  114.     set hilite of me to false
  115.   else
  116.     put "Click to designate next point in sequence.  " & "Double-click to terminate animation sequence." into field "Additional Notes"
  117.     repeat
  118.       wait until the mouse is down
  119.       put the mouseLoc into endLoc
  120.       wait 15
  121.       if the mouse is down then
  122.         put "drag from " & startLoc & " to " & endLoc & return after field "Animation Sequence"
  123.         exit repeat
  124.       end if
  125.       put "drag from " & startLoc & " to " & endLoc & return after field "Animation Sequence"
  126.       put endLoc into startLoc
  127.     end repeat
  128.   end if
  129.   set icon of bkgnd button "Begin" to -15743
  130.   show field "Notes"
  131.   hide field "Additional Notes"
  132. end mouseUp
  133.  
  134.  
  135.  
  136. -- part 7 (button)
  137. -- low flags: 00
  138. -- high flags: A003
  139. -- rect: left=11 top=271 right=300 bottom=92
  140. -- title width / last selected line: 0
  141. -- icon id / first selected line: 0 / 0
  142. -- text alignment: 1
  143. -- font id: 0
  144. -- text size: 12
  145. -- style flags: 0
  146. -- line height: 16
  147. -- part name: Set Up
  148. ----- HyperTalk script -----
  149. on mouseUp
  150.   put "on mouseUp" & return into workScript
  151.   put "choose Lasso Tool" & return after workScript
  152.   put "domenu Select" & return after workScript
  153.   put "domenu Opaque" & return after workScript
  154.   put field "Animation Sequence" after workScript
  155.   put "domenu Undo" & return after workScript
  156.   put "choose " & quote & "Browse Tool" & quote & return after workScript
  157.   put "end mouseUp" after workScript
  158.   set script of background button "Do It!" to workScript
  159. end mouseUp
  160.  
  161.  
  162.  
  163. -- part 8 (button)
  164. -- low flags: 00
  165. -- high flags: A003
  166. -- rect: left=98 top=272 right=301 bottom=204
  167. -- title width / last selected line: 0
  168. -- icon id / first selected line: 0 / 0
  169. -- text alignment: 1
  170. -- font id: 0
  171. -- text size: 12
  172. -- style flags: 0
  173. -- line height: 16
  174. -- part name: Do It!
  175. ----- HyperTalk script -----
  176. on mouseUp
  177.   choose Lasso Tool
  178.   domenu Select
  179.   domenu Opaque
  180.   set dragSpeed to 1000
  181.   drag from 64,116 to 204,5
  182.   drag from 204,5 to 497,203
  183.   drag from 497,203 to 322,327
  184.   drag from 322,327 to 11,135
  185.   drag from 11,135 to 127,12
  186.   drag from 127,12 to 495,289
  187.   drag from 495,289 to 447,328
  188.   drag from 447,328 to 67,115
  189.   domenu Undo
  190.   choose "Browse Tool"
  191. end mouseUp
  192.  
  193.  
  194. -- part 9 (button)
  195. -- low flags: 00
  196. -- high flags: A003
  197. -- rect: left=335 top=312 right=341 bottom=416
  198. -- title width / last selected line: 0
  199. -- icon id / first selected line: 0 / 0
  200. -- text alignment: 1
  201. -- font id: 0
  202. -- text size: 12
  203. -- style flags: 0
  204. -- line height: 16
  205. -- part name: Clear
  206. ----- HyperTalk script -----
  207. on mouseUp
  208.   global endLoc
  209.   set hilite of bkgnd button "Continue?" to false
  210.   put "set dragSpeed to " & field "Speed" & return into field "Animation Sequence"
  211.   put empty into endLoc
  212. end mouseUp
  213.  
  214.  
  215.  
  216. -- part 10 (field)
  217. -- low flags: 00
  218. -- high flags: 0004
  219. -- rect: left=137 top=148 right=174 bottom=221
  220. -- title width / last selected line: 0
  221. -- icon id / first selected line: 0 / 0
  222. -- text alignment: 0
  223. -- font id: 3
  224. -- text size: 18
  225. -- style flags: 256
  226. -- line height: 24
  227. -- part name: Speed
  228.  
  229.  
  230. -- part 11 (button)
  231. -- low flags: 00
  232. -- high flags: 0000
  233. -- rect: left=232 top=150 right=174 bottom=262
  234. -- title width / last selected line: 0
  235. -- icon id / first selected line: 1013 / 1013
  236. -- text alignment: 1
  237. -- font id: 0
  238. -- text size: 12
  239. -- style flags: 0
  240. -- line height: 16
  241. -- part name: 
  242. ----- HyperTalk script -----
  243. on mouseUp
  244.   if the selection is empty then
  245.     put "set dragSpeed to " & field "Speed" & return after field "Animation Sequence"
  246.   else
  247.     type "set dragSpeed to " & field "Speed" & return
  248.   end if
  249. end mouseUp
  250.  
  251.  
  252.  
  253. -- part 12 (button)
  254. -- low flags: 00
  255. -- high flags: 8005
  256. -- rect: left=143 top=83 right=106 bottom=236
  257. -- title width / last selected line: 0
  258. -- icon id / first selected line: 0 / 0
  259. -- text alignment: 1
  260. -- font id: 0
  261. -- text size: 12
  262. -- style flags: 0
  263. -- line height: 16
  264. -- part name: Continue?
  265. ----- HyperTalk script -----
  266. on mouseUp
  267.   global endLoc
  268.   if hilite of bkgnd button "Continue?" is true then
  269.     set hilite of bkgnd button "Continue?" to false
  270.     exit mouseUp
  271.   end if
  272.   repeat until last word of last line of field "Animation Sequence" is not empty
  273.     delete last line of field "Animation Sequence"
  274.   end repeat
  275.   put number of lines of field "Animation Sequence" into noLines
  276.   repeat
  277.     put last word of line noLines of field "Animation Sequence" into it
  278.     if item 2 of it is empty or item 3 of it is not empty then
  279.       subtract 1 from noLines
  280.       if noLines is 0 then
  281.         answer "No place to continue from!" with "OK"
  282.         exit repeat
  283.       end if
  284.     else
  285.       set hilite of bkgnd button "Continue?" to true
  286.       put it into endLoc
  287.       exit repeat
  288.     end if
  289.   end repeat
  290. end mouseUp
  291.  
  292.  
  293.  
  294. -- part 13 (field)
  295. -- low flags: 00
  296. -- high flags: 0002
  297. -- rect: left=54 top=308 right=332 bottom=155
  298. -- title width / last selected line: 0
  299. -- icon id / first selected line: 0 / 0
  300. -- text alignment: 1
  301. -- font id: 3
  302. -- text size: 18
  303. -- style flags: 256
  304. -- line height: 24
  305. -- part name: mouse
  306.  
  307.  
  308. -- part 14 (field)
  309. -- low flags: 81
  310. -- high flags: 0004
  311. -- rect: left=9 top=182 right=269 bottom=251
  312. -- title width / last selected line: 0
  313. -- icon id / first selected line: 0 / 0
  314. -- text alignment: 0
  315. -- font id: 3
  316. -- text size: 12
  317. -- style flags: 0
  318. -- line height: 16
  319. -- part name: Additional Notes
  320.  
  321.  
  322. -- part 15 (field)
  323. -- low flags: 01
  324. -- high flags: 0004
  325. -- rect: left=9 top=182 right=269 bottom=251
  326. -- title width / last selected line: 0
  327. -- icon id / first selected line: 0 / 0
  328. -- text alignment: 0
  329. -- font id: 3
  330. -- text size: 12
  331. -- style flags: 0
  332. -- line height: 16
  333. -- part name: Notes
  334.  
  335.  
  336. -- part 16 (button)
  337. -- low flags: 00
  338. -- high flags: 0000
  339. -- rect: left=476 top=311 right=337 bottom=507
  340. -- title width / last selected line: 0
  341. -- icon id / first selected line: 1012 / 1012
  342. -- text alignment: 1
  343. -- font id: 0
  344. -- text size: 12
  345. -- style flags: 0
  346. -- line height: 16
  347. -- part name: 
  348. ----- HyperTalk script -----
  349. on mouseUp
  350.   visual dissolve to white
  351.   visual dissolve to card
  352.   go back
  353. end mouseUp
  354.  
  355.  
  356.  
  357. -- part 17 (button)
  358. -- low flags: 00
  359. -- high flags: 0000
  360. -- rect: left=234 top=307 right=339 bottom=274
  361. -- title width / last selected line: 0
  362. -- icon id / first selected line: 32462 / 32462
  363. -- text alignment: 1
  364. -- font id: 0
  365. -- text size: 12
  366. -- style flags: 0
  367. -- line height: 16
  368. -- part name: 
  369. ----- HyperTalk script -----
  370. on mouseUp
  371.   visual dissolve slowly to white
  372.   visual dissolve to card
  373.   go next
  374. end mouseUp
  375.  
  376.  
  377.  
  378. -- part 18 (button)
  379. -- low flags: 00
  380. -- high flags: 0000
  381. -- rect: left=11 top=309 right=335 bottom=42
  382. -- title width / last selected line: 0
  383. -- icon id / first selected line: 20689 / 20689
  384. -- text alignment: 1
  385. -- font id: 0
  386. -- text size: 12
  387. -- style flags: 0
  388. -- line height: 16
  389. -- part name: 
  390. ----- HyperTalk script -----
  391. on mouseUp
  392.   visual dissolve to white
  393.   visual dissolve to card
  394.   go home
  395. end mouseUp
  396.  
  397.  
  398.  
  399. -- part 20 (button)
  400. -- low flags: 00
  401. -- high flags: 2006
  402. -- rect: left=158 top=311 right=331 bottom=179
  403. -- title width / last selected line: 0
  404. -- icon id / first selected line: 0 / 0
  405. -- text alignment: 1
  406. -- font id: 0
  407. -- text size: 12
  408. -- style flags: 0
  409. -- line height: 16
  410. -- part name: MouseLoc
  411. ----- HyperTalk script -----
  412. on mouseUp
  413.   repeat until the mouse is down
  414.     put the mouseLoc into field "Mouse"
  415.   end repeat
  416.   set hilite of bkgnd button "MouseLoc" to false
  417. end mouseUp
  418.  
  419.  
  420.  
  421. -- part 21 (button)
  422. -- low flags: 00
  423. -- high flags: 0000
  424. -- rect: left=211 top=272 right=302 bottom=258
  425. -- title width / last selected line: 0
  426. -- icon id / first selected line: 2478 / 2478
  427. -- text alignment: 1
  428. -- font id: 0
  429. -- text size: 12
  430. -- style flags: 0
  431. -- line height: 16
  432. -- part name: 
  433. ----- HyperTalk script -----
  434. on mouseUp
  435.   visual dissolve to card
  436.   go first
  437. end mouseUp
  438.  
  439.